package com.usian.feign;

import com.usian.pojo.SearchItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-01-18 20:38
 */
@FeignClient("usian-search-service")
public interface SearchItemFeign {

    @RequestMapping("/service/searchItem/importAll")
    public Boolean importAll();

    @RequestMapping("/service/searchItem/list")
    List<SearchItem> list(@RequestParam String q, @RequestParam Long page, @RequestParam Integer rows);
}
